<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<display:table  name="giocatori" pagesize="30" id="giocatori" requestURI="" class="tableSir">

   <display:column >
	 	 <s:url action="deletePlayer" id="deletePlayer"> 
	 	 <s:param name="idgiocatore"><s:property value="%{#attr.giocatori.idgiocatore}"/></s:param>
         </s:url> 
         <s:a href="%{deletePlayer}" onclick="confirm('%{getText('player.elenco.confirm')}')">
           <img src="<s:url value='/images/icon_delete.gif' />" border="1" title="<s:text name='user.elenco.delete' />" alt="<s:text name='user.elenco.delete' />"  />
         </s:a>
   </display:column>
<display:column titleKey="player.nome">
		 <s:property value="%{#attr.giocatori.nome}"/>
   </display:column>
   <display:column titleKey="player.idgiocatore">
		 <s:property value="%{#attr.giocatori.idgiocatore}"/>
   </display:column>
   <display:column titleKey="player.squadra">
		 <s:property value="%{#attr.giocatori.squadra}"/>
   </display:column>
   <display:column titleKey="player.Ruolo">
		 <s:property value="%{#attr.giocatori.Ruolo}"/>
   </display:column>
   <display:column titleKey="player.Valore">
		 <s:property value="%{#attr.giocatori.Valore}"/>
   </display:column>
   <display:column titleKey="player.Presenze">
		 <s:property value="%{#attr.giocatori.Presenze}"/>
   </display:column>
   <display:column titleKey="player.GolSubiti">
		 <s:property value="%{#attr.giocatori.GolSubiti}"/>
   </display:column>
   <display:column titleKey="player.GolFatti">
		 <s:property value="%{#attr.giocatori.GolFatti}"/>
   </display:column>
   <display:column titleKey="player.MediaVoto">
		 <s:property value="%{#attr.giocatori.MediaVoto}"/>
   </display:column>
   <display:column titleKey="player.Espulsioni">
		 <s:property value="%{#attr.giocatori.Espulsioni}"/>
   </display:column>
   <display:column titleKey="player.Ammonizioni">
		 <s:property value="%{#attr.giocatori.Ammonizioni}"/>
   </display:column>
</display:table>


<s:url id="ButtonNewPlayer" action="toNewPlayer" namespace="/giocatori"></s:url>
<li><s:a href="%{ButtonNewPlayer}"><s:text name="player.button" /></s:a></li>	
